package com.app.bussinesslocator.bean;

import java.util.ArrayList;

import com.google.android.gms.maps.model.LatLng;

import android.os.Parcel;
import android.os.Parcelable;

public class ObjBussiness implements Parcelable {
	String bussinessName;
	String address;
	float longitude;
	float latitude;
	int rating1, rating2, rating3, rating4;
	float overall;
	String price;
	float distance;
	LatLng latLng;
	ArrayList<ObjOpenHours> objOpenHours;
	


	public ArrayList<ObjOpenHours> getObjOpenHours() {
		return objOpenHours;
	}

	public void setObjOpenHours(ArrayList<ObjOpenHours> objOpenHours) {
		this.objOpenHours = objOpenHours;
	}

	public LatLng getLatLng() {
		return latLng;
	}

	public void setLatLng(LatLng latLng) {
		this.latLng = latLng;
	}

	public String getBussinessName() {
		return bussinessName;
	}

	public void setBussinessName(String bussinessName) {
		this.bussinessName = bussinessName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public float getLongitude() {
		return longitude;
	}

	public void setLongitude(float longitude) {
		this.longitude = longitude;
	}

	public float getLatitude() {
		return latitude;
	}

	public void setLatitude(float latitude) {
		this.latitude = latitude;
	}

	public int getRating1() {
		return rating1;
	}

	public void setRating1(int rating1) {
		this.rating1 = rating1;
	}

	public int getRating2() {
		return rating2;
	}

	public void setRating2(int rating2) {
		this.rating2 = rating2;
	}

	public int getRating3() {
		return rating3;
	}

	public void setRating3(int rating3) {
		this.rating3 = rating3;
	}

	public int getRating4() {
		return rating4;
	}

	public void setRating4(int rating4) {
		this.rating4 = rating4;
	}

	public float getOverall() {
		return overall;
	}

	public void setOverall(float overall) {
		this.overall = overall;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public float getDistance() {
		return distance;
	}

	public void setDistance(float distance) {
		this.distance = distance;
	}

	public ObjBussiness() {

	}

	public ObjBussiness(Parcel in) {
		bussinessName = in.readString();
		address = in.readString();
		longitude = in.readFloat();
		latitude = in.readFloat();
		rating1 = in.readInt();
		rating2 = in.readInt();
		rating3 = in.readInt();
		rating4 = in.readInt();
		overall = in.readFloat();
		price = in.readString();
		distance = in.readFloat();
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(bussinessName);
		dest.writeString(address);
		dest.writeFloat(longitude);
		dest.writeFloat(latitude);
		dest.writeInt(rating1);
		dest.writeInt(rating2);
		dest.writeInt(rating3);
		dest.writeInt(rating4);
		dest.writeFloat(overall);
		dest.writeString(price);
		dest.writeFloat(distance);
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public static final Parcelable.Creator<ObjBussiness> CREATOR = new Parcelable.Creator<ObjBussiness>() {
		public ObjBussiness createFromParcel(Parcel in) {
			return new ObjBussiness(in);
		}

		public ObjBussiness[] newArray(int size) {
			return new ObjBussiness[size];
		}
	};

}
